package com.ktjy.service.impl;

import com.ktjy.dao.PrintDao;
import com.ktjy.dao.impl.PrintDaoAImpl;
import com.ktjy.dao.impl.PrintDaoBImpl;
import com.ktjy.entity.Print;
import com.ktjy.service.PetService;
import com.ktjy.service.PrintService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @return 13141
 * 2025/6/20
 * 14:37
 */
@Service("printService")
public class PrintServiceImpl implements PrintService {
    @Resource(name = "printDaoA")
    private PrintDao printDao;  // dao对象
    // dao封装
    public PrintDao getPrintDao() {
        return printDao;
    }
    public void setPrintDao(PrintDao printDao) {
        this.printDao = printDao;
    }

    @Override
    public boolean printing(Print print) {
        return printDao.printing(print) > 0;
    }
}
